<!--Copyright 2022 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->

# Models

## Generic model classes

The following ORT classes are available for instantiating a base model class without a specific head.

### ORTModel

[[autodoc]] onnxruntime.ORTModel

## Natural Language Processing

The following ORT classes are available for the following natural language processing tasks.

### ORTModelForCausalLM

[[autodoc]] onnxruntime.ORTModelForCausalLM
    - forward

### ORTModelForMaskedLM

[[autodoc]] onnxruntime.ORTModelForMaskedLM

### ORTModelForSeq2SeqLM

[[autodoc]] onnxruntime.ORTModelForSeq2SeqLM
    - forward

### ORTModelForSequenceClassification

[[autodoc]] onnxruntime.ORTModelForSequenceClassification

### ORTModelForTokenClassification

[[autodoc]] onnxruntime.ORTModelForTokenClassification

### ORTModelForMultipleChoice

[[autodoc]] onnxruntime.ORTModelForMultipleChoice

### ORTModelForQuestionAnswering

[[autodoc]] onnxruntime.ORTModelForQuestionAnswering

## Computer vision

The following ORT classes are available for the following computer vision tasks.

### ORTModelForImageClassification

[[autodoc]] onnxruntime.ORTModelForImageClassification

### ORTModelForSemanticSegmentation

[[autodoc]] onnxruntime.ORTModelForSemanticSegmentation

## Audio

The following ORT classes are available for the following audio tasks.

### ORTModelForAudioClassification

[[autodoc]] onnxruntime.ORTModelForAudioClassification

### ORTModelForAudioFrameClassification

[[autodoc]] onnxruntime.ORTModelForAudioFrameClassification

### ORTModelForCTC

[[autodoc]] onnxruntime.ORTModelForCTC

### ORTModelForSpeechSeq2Seq

[[autodoc]] onnxruntime.ORTModelForSpeechSeq2Seq
    - forward

### ORTModelForAudioXVector

[[autodoc]] onnxruntime.ORTModelForAudioXVector

## Multimodal

The following ORT classes are available for the following multimodal tasks.

### ORTModelForVision2Seq

[[autodoc]] onnxruntime.ORTModelForVision2Seq
    - forward

### ORTModelForPix2Struct

[[autodoc]] onnxruntime.ORTModelForPix2Struct
    - forward

## Custom Tasks

The following ORT classes are available for the following custom tasks.

#### ORTModelForCustomTasks

[[autodoc]] onnxruntime.ORTModelForCustomTasks

#### ORTModelForFeatureExtraction

[[autodoc]] onnxruntime.ORTModelForFeatureExtraction

## Stable Diffusion

#### ORTDiffusionPipeline

[[autodoc]] onnxruntime.ORTDiffusionPipeline
    - __call__

#### ORTStableDiffusionPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionPipeline
    - __call__

#### ORTStableDiffusionImg2ImgPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionImg2ImgPipeline
    - __call__

#### ORTStableDiffusionInpaintPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionInpaintPipeline
    - __call__

#### ORTStableDiffusionXLPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionXLPipeline
    - __call__

#### ORTStableDiffusionXLImg2ImgPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionXLImg2ImgPipeline
    - __call__

#### ORTLatentConsistencyModelPipeline

[[autodoc]] onnxruntime.ORTLatentConsistencyModelPipeline
    - __call__
